<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::visualization::PointCloudColorHandler&lt; pcl::PCLPointCloud2 &gt;类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1visualization_1_1_point_cloud_color_handler_3_01pcl_1_1_p_c_l_point_cloud2_01_4.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-attribs">Protected 属性</a> &#124;
<a href="classpcl_1_1visualization_1_1_point_cloud_color_handler_3_01pcl_1_1_p_c_l_point_cloud2_01_4-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::visualization::PointCloudColorHandler&lt; pcl::PCLPointCloud2 &gt;类 参考<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p>Base Handler class for <a class="el" href="classpcl_1_1_point_cloud.html" title="PointCloud represents the base class in PCL for storing collections of 3D points.">PointCloud</a> colors.  
 <a href="classpcl_1_1visualization_1_1_point_cloud_color_handler_3_01pcl_1_1_p_c_l_point_cloud2_01_4.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="point__cloud__color__handlers_8h_source.html">point_cloud_color_handlers.h</a>&gt;</code></p>
<div class="dynheader">
类 pcl::visualization::PointCloudColorHandler&lt; pcl::PCLPointCloud2 &gt; 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classpcl_1_1visualization_1_1_point_cloud_color_handler_3_01pcl_1_1_p_c_l_point_cloud2_01_4.png" usemap="#pcl::visualization::PointCloudColorHandler_3C_20pcl::PCLPointCloud2_20_3E_map" alt=""/>
  <map id="pcl::visualization::PointCloudColorHandler_3C_20pcl::PCLPointCloud2_20_3E_map" name="pcl::visualization::PointCloudColorHandler_3C_20pcl::PCLPointCloud2_20_3E_map">
<area href="classpcl_1_1visualization_1_1_point_cloud_color_handler_custom_3_01pcl_1_1_p_c_l_point_cloud2_01_4.html" title="Handler for predefined user colors. The color at each point will be drawn as the use given R,..." alt="pcl::visualization::PointCloudColorHandlerCustom&lt; pcl::PCLPointCloud2 &gt;" shape="rect" coords="0,56,459,80"/>
<area href="classpcl_1_1visualization_1_1_point_cloud_color_handler_generic_field_3_01pcl_1_1_p_c_l_point_cloud2_01_4.html" title="Generic field handler class for colors. Uses an user given field to extract 1D data and display the c..." alt="pcl::visualization::PointCloudColorHandlerGenericField&lt; pcl::PCLPointCloud2 &gt;" shape="rect" coords="469,56,928,80"/>
<area href="classpcl_1_1visualization_1_1_point_cloud_color_handler_h_s_v_field_3_01pcl_1_1_p_c_l_point_cloud2_01_4.html" title="HSV handler class for colors. Uses the data present in the &quot;h&quot;, &quot;s&quot;, &quot;v&quot; fields as the color at each ..." alt="pcl::visualization::PointCloudColorHandlerHSVField&lt; pcl::PCLPointCloud2 &gt;" shape="rect" coords="938,56,1397,80"/>
<area href="classpcl_1_1visualization_1_1_point_cloud_color_handler_label_field_3_01pcl_1_1_p_c_l_point_cloud2_01_4.html" title="Label field handler class for colors. Paints the points according to their labels,..." alt="pcl::visualization::PointCloudColorHandlerLabelField&lt; pcl::PCLPointCloud2 &gt;" shape="rect" coords="1407,56,1866,80"/>
<area href="classpcl_1_1visualization_1_1_point_cloud_color_handler_r_g_b_a_field_3_01pcl_1_1_p_c_l_point_cloud2_01_4.html" title="RGBA handler class for colors. Uses the data present in the &quot;rgba&quot; field as the color at each point...." alt="pcl::visualization::PointCloudColorHandlerRGBAField&lt; pcl::PCLPointCloud2 &gt;" shape="rect" coords="1876,56,2335,80"/>
<area href="classpcl_1_1visualization_1_1_point_cloud_color_handler_r_g_b_field_3_01pcl_1_1_p_c_l_point_cloud2_01_4.html" title="RGB handler class for colors. Uses the data present in the &quot;rgb&quot; or &quot;rgba&quot; fields as the color at eac..." alt="pcl::visualization::PointCloudColorHandlerRGBField&lt; pcl::PCLPointCloud2 &gt;" shape="rect" coords="2345,56,2804,80"/>
<area href="classpcl_1_1visualization_1_1_point_cloud_color_handler_random_3_01pcl_1_1_p_c_l_point_cloud2_01_4.html" title="Handler for random PointCloud colors (i.e., R, G, B will be randomly chosen)" alt="pcl::visualization::PointCloudColorHandlerRandom&lt; pcl::PCLPointCloud2 &gt;" shape="rect" coords="2814,56,3273,80"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:aa5ccd63853f55c86435490711e343e16"><td class="memItemLeft" align="right" valign="top"><a id="aa5ccd63853f55c86435490711e343e16"></a>
typedef <a class="el" href="structpcl_1_1_p_c_l_point_cloud2.html">pcl::PCLPointCloud2</a>&#160;</td><td class="memItemRight" valign="bottom"><b>PointCloud</b></td></tr>
<tr class="separator:aa5ccd63853f55c86435490711e343e16"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb155cd6e141375c139529652839d5ad"><td class="memItemLeft" align="right" valign="top"><a id="acb155cd6e141375c139529652839d5ad"></a>
typedef PointCloud::Ptr&#160;</td><td class="memItemRight" valign="bottom"><b>PointCloudPtr</b></td></tr>
<tr class="separator:acb155cd6e141375c139529652839d5ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a775e2022a4651bfd014173ecee31d722"><td class="memItemLeft" align="right" valign="top"><a id="a775e2022a4651bfd014173ecee31d722"></a>
typedef PointCloud::ConstPtr&#160;</td><td class="memItemRight" valign="bottom"><b>PointCloudConstPtr</b></td></tr>
<tr class="separator:a775e2022a4651bfd014173ecee31d722"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7628783d4b9bcbf0b391d11c004cac2f"><td class="memItemLeft" align="right" valign="top"><a id="a7628783d4b9bcbf0b391d11c004cac2f"></a>
typedef boost::shared_ptr&lt; <a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html">PointCloudColorHandler</a>&lt; <a class="el" href="structpcl_1_1_p_c_l_point_cloud2.html">PointCloud</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>Ptr</b></td></tr>
<tr class="separator:a7628783d4b9bcbf0b391d11c004cac2f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ce75a42f5f934ef1b86730582ad34b8"><td class="memItemLeft" align="right" valign="top"><a id="a5ce75a42f5f934ef1b86730582ad34b8"></a>
typedef boost::shared_ptr&lt; const <a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html">PointCloudColorHandler</a>&lt; <a class="el" href="structpcl_1_1_p_c_l_point_cloud2.html">PointCloud</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>ConstPtr</b></td></tr>
<tr class="separator:a5ce75a42f5f934ef1b86730582ad34b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a33f5225d5f574a6b68573511531132c8"><td class="memItemLeft" align="right" valign="top"><a id="a33f5225d5f574a6b68573511531132c8"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler_3_01pcl_1_1_p_c_l_point_cloud2_01_4.html#a33f5225d5f574a6b68573511531132c8">PointCloudColorHandler</a> (const PointCloudConstPtr &amp;cloud)</td></tr>
<tr class="memdesc:a33f5225d5f574a6b68573511531132c8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br /></td></tr>
<tr class="separator:a33f5225d5f574a6b68573511531132c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ce0caa489402ec73d675e4b6931639d"><td class="memItemLeft" align="right" valign="top"><a id="a8ce0caa489402ec73d675e4b6931639d"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler_3_01pcl_1_1_p_c_l_point_cloud2_01_4.html#a8ce0caa489402ec73d675e4b6931639d">~PointCloudColorHandler</a> ()</td></tr>
<tr class="memdesc:a8ce0caa489402ec73d675e4b6931639d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:a8ce0caa489402ec73d675e4b6931639d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2124b3e1e4f8a108943a3052a3e05a86"><td class="memItemLeft" align="right" valign="top"><a id="a2124b3e1e4f8a108943a3052a3e05a86"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler_3_01pcl_1_1_p_c_l_point_cloud2_01_4.html#a2124b3e1e4f8a108943a3052a3e05a86">isCapable</a> () const</td></tr>
<tr class="memdesc:a2124b3e1e4f8a108943a3052a3e05a86"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return whether this handler is capable of handling the input data or not. <br /></td></tr>
<tr class="separator:a2124b3e1e4f8a108943a3052a3e05a86"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a965a793b4999e723185b2ee9cfc3dea3"><td class="memItemLeft" align="right" valign="top"><a id="a965a793b4999e723185b2ee9cfc3dea3"></a>
virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler_3_01pcl_1_1_p_c_l_point_cloud2_01_4.html#a965a793b4999e723185b2ee9cfc3dea3">getName</a> () const =0</td></tr>
<tr class="memdesc:a965a793b4999e723185b2ee9cfc3dea3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Abstract getName method. <br /></td></tr>
<tr class="separator:a965a793b4999e723185b2ee9cfc3dea3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f31a63fe2ea33cd12e8eb1e3952b503"><td class="memItemLeft" align="right" valign="top"><a id="a5f31a63fe2ea33cd12e8eb1e3952b503"></a>
virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler_3_01pcl_1_1_p_c_l_point_cloud2_01_4.html#a5f31a63fe2ea33cd12e8eb1e3952b503">getFieldName</a> () const =0</td></tr>
<tr class="memdesc:a5f31a63fe2ea33cd12e8eb1e3952b503"><td class="mdescLeft">&#160;</td><td class="mdescRight">Abstract getFieldName method. <br /></td></tr>
<tr class="separator:a5f31a63fe2ea33cd12e8eb1e3952b503"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab5616ed75839aaeaf556b75fc71b94d0"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler_3_01pcl_1_1_p_c_l_point_cloud2_01_4.html#ab5616ed75839aaeaf556b75fc71b94d0">getColor</a> (<a class="el" href="classvtk_smart_pointer.html">vtkSmartPointer</a>&lt; vtkDataArray &gt; &amp;scalars) const =0</td></tr>
<tr class="memdesc:ab5616ed75839aaeaf556b75fc71b94d0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Obtain the actual color for the input dataset as vtk scalars.  <a href="classpcl_1_1visualization_1_1_point_cloud_color_handler_3_01pcl_1_1_p_c_l_point_cloud2_01_4.html#ab5616ed75839aaeaf556b75fc71b94d0">更多...</a><br /></td></tr>
<tr class="separator:ab5616ed75839aaeaf556b75fc71b94d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a75feca450cc47dab77f36cea2f18c7ca"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler_3_01pcl_1_1_p_c_l_point_cloud2_01_4.html#a75feca450cc47dab77f36cea2f18c7ca">setInputCloud</a> (const PointCloudConstPtr &amp;cloud)</td></tr>
<tr class="memdesc:a75feca450cc47dab77f36cea2f18c7ca"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the input cloud to be used.  <a href="classpcl_1_1visualization_1_1_point_cloud_color_handler_3_01pcl_1_1_p_c_l_point_cloud2_01_4.html#a75feca450cc47dab77f36cea2f18c7ca">更多...</a><br /></td></tr>
<tr class="separator:a75feca450cc47dab77f36cea2f18c7ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected 属性</h2></td></tr>
<tr class="memitem:a2e04ee6c426fdd7cc451e5f7c49019aa"><td class="memItemLeft" align="right" valign="top"><a id="a2e04ee6c426fdd7cc451e5f7c49019aa"></a>
PointCloudConstPtr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler_3_01pcl_1_1_p_c_l_point_cloud2_01_4.html#a2e04ee6c426fdd7cc451e5f7c49019aa">cloud_</a></td></tr>
<tr class="memdesc:a2e04ee6c426fdd7cc451e5f7c49019aa"><td class="mdescLeft">&#160;</td><td class="mdescRight">A pointer to the input dataset. <br /></td></tr>
<tr class="separator:a2e04ee6c426fdd7cc451e5f7c49019aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae52ac080ce1a6e2794cb120c00359765"><td class="memItemLeft" align="right" valign="top"><a id="ae52ac080ce1a6e2794cb120c00359765"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler_3_01pcl_1_1_p_c_l_point_cloud2_01_4.html#ae52ac080ce1a6e2794cb120c00359765">capable_</a></td></tr>
<tr class="memdesc:ae52ac080ce1a6e2794cb120c00359765"><td class="mdescLeft">&#160;</td><td class="mdescRight">True if this handler is capable of handling the input data, false otherwise. <br /></td></tr>
<tr class="separator:ae52ac080ce1a6e2794cb120c00359765"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b406fbf284e88ae172deb0a68250da3"><td class="memItemLeft" align="right" valign="top"><a id="a1b406fbf284e88ae172deb0a68250da3"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler_3_01pcl_1_1_p_c_l_point_cloud2_01_4.html#a1b406fbf284e88ae172deb0a68250da3">field_idx_</a></td></tr>
<tr class="memdesc:a1b406fbf284e88ae172deb0a68250da3"><td class="mdescLeft">&#160;</td><td class="mdescRight">The index of the field holding the data that represents the color. <br /></td></tr>
<tr class="separator:a1b406fbf284e88ae172deb0a68250da3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>Base Handler class for <a class="el" href="classpcl_1_1_point_cloud.html" title="PointCloud represents the base class in PCL for storing collections of 3D points.">PointCloud</a> colors. </p>
<dl class="section author"><dt>作者</dt><dd>Radu B. Rusu </dd></dl>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="ab5616ed75839aaeaf556b75fc71b94d0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab5616ed75839aaeaf556b75fc71b94d0">&#9670;&nbsp;</a></span>getColor()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool <a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html">pcl::visualization::PointCloudColorHandler</a>&lt; <a class="el" href="structpcl_1_1_p_c_l_point_cloud2.html">pcl::PCLPointCloud2</a> &gt;::getColor </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classvtk_smart_pointer.html">vtkSmartPointer</a>&lt; vtkDataArray &gt; &amp;&#160;</td>
          <td class="paramname"><em>scalars</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Obtain the actual color for the input dataset as vtk scalars. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">scalars</td><td>the output scalars containing the color for the dataset </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>true if the operation was successful (the handler is capable and the input cloud was given as a valid pointer), false otherwise </dd></dl>

<p>在 <a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler_label_field_3_01pcl_1_1_p_c_l_point_cloud2_01_4.html#aae144bafcb8cbc8a4d6259b60e82930b">pcl::visualization::PointCloudColorHandlerLabelField&lt; pcl::PCLPointCloud2 &gt;</a>, <a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler_r_g_b_a_field_3_01pcl_1_1_p_c_l_point_cloud2_01_4.html#a9c5f65837c7969560f89d01ac4d17fe3">pcl::visualization::PointCloudColorHandlerRGBAField&lt; pcl::PCLPointCloud2 &gt;</a>, <a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler_generic_field_3_01pcl_1_1_p_c_l_point_cloud2_01_4.html#a1a9dbfb4eb0a9f94b4fd72bb817f8806">pcl::visualization::PointCloudColorHandlerGenericField&lt; pcl::PCLPointCloud2 &gt;</a>, <a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler_h_s_v_field_3_01pcl_1_1_p_c_l_point_cloud2_01_4.html#a860cc88807d18ace91d2d79c8839e84e">pcl::visualization::PointCloudColorHandlerHSVField&lt; pcl::PCLPointCloud2 &gt;</a>, <a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler_r_g_b_field_3_01pcl_1_1_p_c_l_point_cloud2_01_4.html#a5c419a728e48325cf48d2dea2bacfac9">pcl::visualization::PointCloudColorHandlerRGBField&lt; pcl::PCLPointCloud2 &gt;</a>, <a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler_custom_3_01pcl_1_1_p_c_l_point_cloud2_01_4.html#a11bafac94f52f236739d5673e3a053e1">pcl::visualization::PointCloudColorHandlerCustom&lt; pcl::PCLPointCloud2 &gt;</a> , 以及 <a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler_random_3_01pcl_1_1_p_c_l_point_cloud2_01_4.html#a2aff3cac6123dd32ddf511d79dd95074">pcl::visualization::PointCloudColorHandlerRandom&lt; pcl::PCLPointCloud2 &gt;</a> 内被实现.</p>

</div>
</div>
<a id="a75feca450cc47dab77f36cea2f18c7ca"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a75feca450cc47dab77f36cea2f18c7ca">&#9670;&nbsp;</a></span>setInputCloud()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html">pcl::visualization::PointCloudColorHandler</a>&lt; <a class="el" href="structpcl_1_1_p_c_l_point_cloud2.html">pcl::PCLPointCloud2</a> &gt;::setInputCloud </td>
          <td>(</td>
          <td class="paramtype">const PointCloudConstPtr &amp;&#160;</td>
          <td class="paramname"><em>cloud</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set the input cloud to be used. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">cloud</td><td>the input cloud to be used by the handler </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00618"></a><span class="lineno">  618</span>&#160;        {</div>
<div class="line"><a name="l00619"></a><span class="lineno">  619</span>&#160;          <a class="code" href="classpcl_1_1visualization_1_1_point_cloud_color_handler_3_01pcl_1_1_p_c_l_point_cloud2_01_4.html#a2e04ee6c426fdd7cc451e5f7c49019aa">cloud_</a> = cloud;</div>
<div class="line"><a name="l00620"></a><span class="lineno">  620</span>&#160;        }</div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_point_cloud_color_handler_3_01pcl_1_1_p_c_l_point_cloud2_01_4_html_a2e04ee6c426fdd7cc451e5f7c49019aa"><div class="ttname"><a href="classpcl_1_1visualization_1_1_point_cloud_color_handler_3_01pcl_1_1_p_c_l_point_cloud2_01_4.html#a2e04ee6c426fdd7cc451e5f7c49019aa">pcl::visualization::PointCloudColorHandler&lt; pcl::PCLPointCloud2 &gt;::cloud_</a></div><div class="ttdeci">PointCloudConstPtr cloud_</div><div class="ttdoc">A pointer to the input dataset.</div><div class="ttdef"><b>Definition:</b> point_cloud_color_handlers.h:624</div></div>
</div><!-- fragment -->
</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>visualization/include/pcl/visualization/<a class="el" href="point__cloud__color__handlers_8h_source.html">point_cloud_color_handlers.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><b>visualization</b></li><li class="navelem"><a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler_3_01pcl_1_1_p_c_l_point_cloud2_01_4.html">PointCloudColorHandler&lt; pcl::PCLPointCloud2 &gt;</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
